package onlineLanguageQuiz

import org.springframework.cloud.contract.spec.Contract

Contract.make {
    request {
        method("GET")
        url(value(producer("/api/v3/onlineLanguageQuizzes/students/1/assignments/1/quizzes/1")
                , consumer(regex("/api/v3/onlineLanguageQuizzes/students/\\d+/assignments/\\d+/quizzes/\\d+"))))
    }
    response {
        status(200)
        body("""
        {
            "id":1
        }
        """)
        bodyMatchers {

        }
        headers {
            contentType(applicationJsonUtf8())
        }
    }
}
